package ar.edu.unq.persistencia.commands;

import org.hibernate.Session;

/**
 * TODO: description
 */
public abstract class Command<T> implements Runnable {

    private Session session;

    private Class<T> clazz;

    public Command(final Class clazz) {
        this.setClazz(clazz);
    }

    public void setClazz(final Class<T> clazz) {
        this.clazz = clazz;
    }

    protected Class<T> getClazz() {
        return this.clazz;
    }

    protected Session getSession() {
        return this.session;
    }

    public void setSession(final Session session) {
        this.session = session;
    }

}
